home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / Display.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  1.4 KB  |  69 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: Display.h,v $ $Revision: 1.14 $ $Date: 92/05/14 12:49:27 $ */
  6. /*
  7. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8.  
  9. #ifndef _XmDisplay_h
  10. #define _XmDisplay_h
  11.  
  12. #include <Xm/Xm.h>
  13. #include <X11/Shell.h>
  14. #include <Xm/DragC.h>
  15. #include <Xm/DropSMgr.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #ifndef XmIsDisplay
  22. #define XmIsDisplay(w) (XtIsSubclass(w, xmDisplayClass))
  23. #endif /* XmIsXmDisplay */
  24.  
  25. enum {
  26.     XmDRAG_NONE,
  27.     XmDRAG_DROP_ONLY,
  28.     XmDRAG_PREFER_PREREGISTER,
  29.     XmDRAG_PREREGISTER,
  30.     XmDRAG_PREFER_DYNAMIC,
  31.     XmDRAG_DYNAMIC,
  32.     XmDRAG_PREFER_RECEIVER
  33. };
  34.  
  35. /* Class record constants */
  36.  
  37. typedef struct _XmDisplayRec *XmDisplay;
  38. typedef struct _XmDisplayClassRec *XmDisplayClass;
  39. extern     WidgetClass xmDisplayClass;
  40.  
  41. #define XmGetDisplay(w) XmGetXmDisplay(XtDisplayOfObject(w))
  42.  
  43.  
  44. /********    Public Function Declarations    ********/
  45. #ifdef _NO_PROTO
  46.  
  47. extern Widget XmGetDragContext() ;
  48. extern Widget XmGetXmDisplay() ;
  49.  
  50. #else
  51.  
  52. extern Widget XmGetDragContext( 
  53.                         Widget w,
  54.                         Time time) ;
  55. extern Widget XmGetXmDisplay( 
  56.                         Display *display) ;
  57.  
  58. #endif /* _NO_PROTO */
  59. /********    End Public Function Declarations    ********/
  60.  
  61.  
  62. #ifdef __cplusplus
  63. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  64. #endif
  65.  
  66. #endif /* _XmDisplay_h */
  67.  
  68.  
  69.